package com.hl.sfzy.mapper.content.assesment;

import java.time.LocalDateTime;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.hl.sfzy.entity.content.Assessment;

@Mapper
@Repository
public interface AssessmentMapper {
    public List<Assessment> findByAll();

    public Assessment findById(Long assessmentId);

    public int saveOne(Assessment assessment);

    public int updateOne(Assessment assessment);

    public List<Assessment> search(@Param("keyword") String keyword,
            @Param("startTime") LocalDateTime startTime,
            @Param("endTime") LocalDateTime endTime);

    public int deleteOne(Long id);
}
